package com.yuyou.fn.platform.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.platform.entity.BusTeam;
import com.yuyou.fn.platform.permission.DataPermission;

import java.util.List;
import java.util.Map;

/**
 *
 * BusTeam 表数据服务层接口
 *
 */
public interface IBusTeamService extends ISuperService<BusTeam,Long> {


    Page<BusTeam> findBusTeamForManage(DataPermission dataPermission, int pageNo, int pageSize);

    void saveOrUpdateBusTeam(Long busTeamId, Long areaTeamId, String name);

    void deleteBusTeam(Long busTeamId);

    List<BusTeam> findBusTeamForList(Long areaTeamId,Long busTeamId);

    String findTeamNameById(Long busTeamId );

    List<BusTeam> findBusTeamByAreaTeamIds(List<Long> areaTeamIdList);

    List<String> findBusTeamNameByIds(List<Long>  busTeamIds);

    BusTeam findByAreaTeamIdAndBusName(Long areaTeamId,String busTeamName);

    List<BusTeam> findListOrderByAreaTeamId(List<Long> busTeamIds);

    Map<Long,BusTeam> findBusTeamMapByAreaTeamId(long areaTeamId);
}